package com.daxt.model.dic;

/**
 * @description: 档案来源
 *
 * @author: lig
 * @date: 2022/3/24
 */
public enum DicDocFrom {

	FROM_1("1","著录"),//
	FROM_2("2","OA系统"),//离隰OA系统
	FROM_3("3","导入"),
	FROM_4("4","离隰质保资料系统"),//
	FROM_5("5","OA系统"),//集团OA系统
	FROM_6("6","政务审批系统"); //阳高政务审批系统

	private String key;
	private String value;

	private DicDocFrom(String key, String value) {
		this.key = key;
		this.value = value;
	}
	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	

	public static boolean hasKey(String key) {
		DicDocFrom[] values = DicDocFrom.values();
		for (DicDocFrom type : values) {
			if(type.name().equals(key)) {
				return true;
			}
		}
		return false;
	}
}
